﻿using AutoMapper;
using Practice.API.Application.Commands.Permissionw;
using Practice.API.Application.Commands.Roles;
using Practice.Common.Domains;

namespace Practice.API.Common
{
    /// <summary>
    /// 配置AutoMapper映射关系
    /// </summary>
    public class AutoMapperProfile : Profile
    {
        public AutoMapperProfile()
        {
            //用户
            CreateMap<PermissionCreateCommand, Permission>();

            CreateMap<RoleCreateCommand, Role>();

        }


    }
}
